import { Column, CreateDateColumn, DeleteDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";

@Entity()
export class File {
  @PrimaryGeneratedColumn()
  id: number;

  //编号
  @Column()
  code: string;

  @Column()
  userId: string;

  @Column()
  username: string;

  @Column('text', { nullable: true })
  notes: string;

  @Column('text')
  filePaths: string;

  @CreateDateColumn()
  createdAt: Date;

  @UpdateDateColumn()
  updatedAt: Date;

  @DeleteDateColumn({ select: false })
  deletedAt: Date;
}
